package com.xindao.other;

public class ArrayUtil {

  public static void sweap(String[] data, int first, int second) {
    String tmp = data[first];
    data[first] = data[second];
    data[second] = tmp;
  }

  public static void sweap(int[] data, int first, int second) {
    int tmp = data[first];
    data[first] = data[second];
    data[second] = tmp;
  }

}
